home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Documentation / Apple Event Registry / AE Suites Under Development / Word Services SDK 1.0 / Writeswell Jr. Source / headers / Prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-25  |  1.5 KB  |  47 lines  |  [TEXT/KAHL]

  1. /* Prefs.h
  2.  * Interface to routines for preferences file management
  3.  * ©1992 Working Software, Inc.
  4.  * This source code is copyrighted.  Permission is granted to use the Word Services
  5.  * portion of the Writeswell Jr. source code in your own programs, but you 
  6.  * may not distribute the Writeswell Jr. word-processor code as a 
  7.  * commercial product.  If you modify the code, please do not call it 
  8.  * Writeswell Jr. (or Writeswell.)  This will ensure that people understand the 
  9.  * program and don’t have to deal with a number of different versions with 
  10.  * who-knows-what going on in the code.
  11.  * 
  12.  * Writeswell Jr. and Writeswell are trademarks of Working Software, Inc.
  13.  * 18 Apr 92 Mike Crawford
  14.  */
  15.  
  16. typedef struct {
  17.     short    checkSel;
  18.     short    sendByList;
  19.     short    serviceType[ kMaxServices ];
  20. } WWJrPrefs, **WWJrPrefsHdl;
  21.  
  22. typedef enum {
  23.     kNoService = 0,
  24.     kBatchService,
  25.     kInteractiveService
  26. } ServiceType;
  27.  
  28. #define kServiceBaseID    1000
  29. #define kMenuIconBaseID    257
  30.  
  31. #define kAFPrefsID    128
  32. #define kPFPrefsID    1128
  33.  
  34. Boolean OpenPrefFile( void );
  35. OSErr ValidatePrefsFile( void );
  36. OSErr GetPrefFolder( short *vRefPtr, long *dirIDPtr );
  37. Boolean FileExistsWithThisType( short vRef, long dirID, StringPtr fileName, OSType type );
  38. Boolean CreateDefaultPrefFile( short vRef, long dirID, StringPtr fileName );
  39. OSErr CopyResource( short fromID,
  40.                     short toID,
  41.                     ResType theType,
  42.                     short fromFile,
  43.                     short toFile );
  44. void ToggleSelectCheck( void );
  45. MenuHandle GetServiceMenu( void );
  46. WWJrPrefsHdl GetPrefHandle( void );
  47. void CheckSelectMenu( WWJrPrefsHdl prefHdl );